home *** CD-ROM | disk | FTP | other *** search
- /* ARexx script to Ping someone */
- /* For use with AmiComSys 1.12+ */
- /* Ping must be in the AMITCP:bin directory or */
- /* MiamiPing must be in the MIAMI: directory */
- /* $VER: Ping.rexx 1.1 (15.1.97) Håkan Parting */
- ADDRESS AMICOMSYS;
- OPTIONS RESULTS;
-
- GET stem info. CLIENTLIST;
- /* "stem info." inserts the results to the structure 'info.'. */
- /* "var s" would have inserted all the results to one string in s. */
- /* "CLIENTLIST": We want to read the client list information. */
- s=info.selected;
-
- if show('P','MIAMI.1') then
- do
- ADDRESS COMMAND "MIAMI:MiamiPing " info.hostnames.s;
- Exit
- end
-
- ADDRESS COMMAND "AMITCP:bin/Ping " info.hostnames.s;
- /* To start another application just change ping to any other
- program name and remove the 'if show do end' block*/
-
- EXIT;
-